// main: template.less

header,footer,.header-m,main,.i-banner,.banner{.tra(.5s)};

///// ------------------ Header ------------------ /////
@header_h:100px;
.header{
  .logo{
    .h(@header_h);
    overflow: hidden;
  }
  nav{
    ul{
      li{
        position: relative;
        z-index: 2;
        float: left;
        margin: 0 20px;
        &.cur,&:hover{
          a::after{
            -webkit-transform: scale(1);
            transform: scale(1);
          }
        }
        &:hover{
          >a{
            .wbc();
          }
          .sub-nav{            
            .op1();
            top: @header_h;
          }
        }
        >a{
          position: relative;
          .h(@header_h);
          &::after{
            .pter();
            left: 0;
            bottom: 0;
            width: 100%;
            height: 3px;
            .wbbg();
            .da(0,1);
            .tra(.3s);
          }
        }
        .sub-nav{
          .op0();
          z-index: 1;
          top: 130px;
          left: 50%;
          padding: 10px;
          width: 150px;
          background: rgba(255, 255, 255, .9);
          .trax();
          .tra(.5s);
          a{
            line-height: 23px;
            padding: 8px 0;
            text-align: center;
            border-bottom: 1px solid rgba(0,0,0,.1);
            &:hover{
              color: #fff;
              .wbbg();
            }
          }
        }
      }
    }
  }
  // 普通搜索-样式
  .search-w{
    height: @header_h;
  }
  .search{
    width: 198px;
    .h(40px);
    border-radius: 20px;
    background: #f6f6f6;
    overflow: hidden;
    .txt{
      float: left;
      .w(50px);
      .h(30px);
      font-size: 12px;
      padding-left: 30px;
      background: transparent;
    }
    .btn{
      float: right;
      width: 50px;
      height: 100%;
      background: url(../images/search.png) no-repeat center;

      background: url() no-repeat center;
      background-size: 35%;  
    }
  }
  // 搜索按钮
  .search-btn{
    width: 80px;
    height: @header_h;
    background: url(../images/search.png) no-repeat center;
    cursor: pointer;
    
    background: url() no-repeat center;
    background-size: 23px;
  }
  // 语言版本
  .language{

  }
}

///// ------------------ Footer ------------------ /////
footer{
  .footer-head{
    background: #333;
    border-bottom: 1px solid #393939;
    dl{
      margin-left: 5%;
      &:first-child{margin-left: 0;}
    }
    dt{
      line-height: 30px;
      color: #eee;
      font-size: 16px;
    }
    dd{
      line-height: 25px;
      color: #eee;
      font-size: 12px;
      a{
        &:hover{text-decoration: underline;}
      }
    }
  }
  .copyright{
    padding: .15rem .25rem;
    color: #fff;
    background: #222;
  }
}

///// ------------------ banner ------------------ /////
.i-banner{
  // banner-左右按钮
  .slick-prev,.slick-next{
    width: 50px;
    height: 50px;
    background: #ccc;
    .tra(0.6s);
    &:hover,&.cur{
      border-radius: 50%;
    }
  }
  // 左-按钮
  .slick-prev{
    // background: url(../images/banner_l.png) no-repeat center;
    // background-size: cover;
    // &:hover{
    //   background: url(../images/banner_ls.png) no-repeat center;
    //   background-size: cover;
    // }    
  }
  // 右-按钮
  .slick-next{
    // background: url(../images/banner_r.png) no-repeat center;
    // background-size: cover;
    // &:hover{
    //   background: url(../images/banner_rs.png) no-repeat center;
    //   background-size: cover;
    // }    
  }
  // 圆点样式
  .slick-dots{
    bottom: .25rem;
    li{
      background: #fff;
      .tra();  
      &.slick-active,&:hover,&:focus{
        .wbbg();
      }
    }
  }
  a{display: block;min-height: 50px;}
  .dn{display: none !important;}
}

///// ------------------ Index ------------------ /////

// 关于我们
.i-about{}
// 产品中心
.i-pro{}
// 新闻中心
.i-news{}

///// ------------------ Main-内页 ------------------ /////

// Banner
.banner{
  height: 320px;
  .bgs();
}
// 内页-菜单
.main-nav-p{
  background: #f1f1f1;
  ul{
    font-size: 0;
  }
  li{
    display: inline-block;
    &.cur,&:hover{
      a{
        color: #fff;
        .wbbg();    
      }
    }
  }
  a{
    display: block;
    .h(50px);
    padding: 0 10px;
    font-size: 14px;
    .tra();
  }
}
// 内页-面包屑
.main-home{
  .h(50px);
  a{
    &:hover{
      .wbc();
    }
  }
}
// 内页-主体
.content{
  min-height: 400px;
}
// 关于我们
.about{

}
// 荣誉资质-列表
.honor-list{

}
// 视频列表
.video-list{

}
// 产品列表
.pro-list{
  ul{
    margin-left: -.3rem;
  }
  li{
    padding-left: .3rem;
    margin-bottom: .2rem;
  }
  h3{

  }
  .imgs{
    height: 100px;
  }
}
// 产品详情
.pro-info{

}
// 新闻列表
.news-list{

}
// 新闻详情
.news-info{

}
// 招聘列表
.join-list{

}
// 在线留言
.message{

}
// 联系我们
.contact{
  
}

///// ------------------ 杂项 ------------------ /////
// 轮播主题颜色
.slick-dots{
  li{
    &.slick-active,&:hover,&:focus{
      .wbbg();
    }
  }
}

// 列表页码
.in-page{
  color: #888;
  span{
    padding: 0 15px;
    border: 1px solid #e8e8e8;
  }
  a{
    height: 35px;
    line-height: 35px;  
    padding: 0 15px;
    border: 1px solid #e8e8e8;
    &:hover,&.cur{
      border-color: @ThemeColor;
      background: @ThemeColor;
      color: #fff;
    }
  }
}
// Tab
.tab-head{
  li{
    cursor: pointer;
  }
}
.tab-body{
  li{
    .op0();
    height: 0;
    .tra();
    &.cur{
      .op1();
      height: inherit;
    }
  }
}
// 编辑框
.edit{
  overflow: hidden;
  span{
    display: inline;
  }
  img{
    width: auto !important;
    height: auto !important;
  }
}

///// ------------------ 弹出层 ------------------ /////
.fix-wrap {
  display: none;
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8);
  .hide {
    position: fixed;
    width: 25px;
    height: 25px;
    padding: 25px; 
    right: 5%;
    top: 5%;
    background: #090908;
    cursor: pointer;
    border-radius: 50%;
    .tra(.8s);
    &::before,&::after{
      position: absolute;
      top: 50%;
      left: 50%;
      content: '';
      width: 1px;
      height: 55%;
      background: #fff;
      margin-top: -27.5%;
    }
    &::before{
      .zhuan(45deg);
    }
    &::after{
      .zhuan(-45deg);
    }
    &:hover {
      .zhuan(180deg);
    }
  }
}
// Video
.fix-video{
  .video-wrap{
    min-width: 55%;
    max-width: 55%;
    padding: 10px;
    border-radius: 5px;
    background: #2d2d2d;
    border: 1px solid #3a3a3a;
    box-shadow: 0 0 5px rgba(0, 0, 0,.5);
    overflow: hidden;
    animation: ReturnToNormal .5s both;
    -webkit-animation: ReturnToNormal .5s both;
  }
  video{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
// Img
.fix-pic{
  overflow: auto;
  img{
    animation: zoomIn .5s both;
    -webkit-animation: zoomIn .5s both;
  }
}
// Search
.fix-search{
  padding: 0 2.5%;
  background: #222;
  &:hover{
    .search{
      &::after{
        transform: scale(1);
        -webkit-transform: scale(1);
      }
    }
  }
  .search{
    position: relative;
    width: 100%;
    height: 125px;
    color: #555;
    padding-left: 88px;
    font-size: 66px;
    background: url() no-repeat 35px center;
    &::before,&::after{
      .pter();
      left: 0;
      bottom: 0px;
      width: 100%;
      height: 1px;
      .tra(1s);
    }
    &::before{
      background: #515151;
    }
    &::after{
      background: rgba(255, 255, 255, .5);
      .da(0,1);
    }
  }
  .txt,.btn{
    color: #555;
    background: transparent;
  }
  .txt{
    width: 100%;
    text-align: center;
    font-size: 66px;
    padding-right: 2%;
  }
  .btn{
    font-size: 24px;
  }
}